﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="address_edit.aspx.cs" Inherits="AnyOffice.general.address.personal.address_edit" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>编辑联系人</title>
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		
		<link rel="stylesheet" type="text/css" href="/module/date_selector/popcalendar.css">
		<script src="/module/date_selector/popcalendar.js"></script>
		<script src="/aspnet_client/core/function.js"></script>
		<script Language="JavaScript">
function CheckForm()
{
   if(document.Form1.txtName.value=="")
   { 
	 alert("联系人姓名不能为空！");
	 document.Form1.txtName.focus();
     return (false);
   }
   if(!checkIsDate(document.Form1.txtBirthday.value))
   {
	 alert("生日日期不正确，或非有效日期！");
	 document.Form1.txtBirthday.focus();
	 return (false);
   }
   return (true);
}
		</script>
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<form id="Form1" method="post" runat="server">
		<asp:Panel id="pnlMain" runat="server">
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/menu/address.gif" align="absMiddle"><span class="big3">
							编辑联系人</span>
					</td>
				</tr>
			</table>
			<br>
			<table border="0" width="450" cellpadding="2" cellspacing="1" align="center" class="tab_pub">
				<TBODY>
					<tr>
						<td nowrap class="TableHeader" colspan="2"><b>&nbsp;分组</b></td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							分组：</td>
						<td class="ta_txt">
							<asp:DropDownList id="ddlGroupId" runat="server" CssClass="BigSelect"></asp:DropDownList>
						</td>
					</tr>
					<tr>
						<td nowrap class="TableHeader" colspan="2"><b>&nbsp;个人信息</b></td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							姓名：</td>
						<td class="ta_txt">
							<input type="text" size="20" maxlength="50" class="BigInput" id="txtName" runat="server"
								NAME="txtName">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							性别：</td>
						<td class="ta_txt">
							<asp:DropDownList id="ddlSex" runat="server" CssClass="BigSelect">
								<asp:ListItem Value="True">男</asp:ListItem>
								<asp:ListItem Value="False">女</asp:ListItem>
							</asp:DropDownList>
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">生日：</td>
						<td class="ta_txt">
							<input type="text" size="10" maxlength="20" class="BigInput" id="txtBirthday" runat="server"
								NAME="txtBirthday"> <IMG style="CURSOR: hand" onClick="popUpCalendar(this,txtBirthday,'yyyy-mm-dd','');"
								src="/module/date_selector/calendar.gif" align="absMiddle" border="0">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							昵称：</td>
						<td class="ta_txt">
							<input type="text" size="25" maxlength="50" class="BigInput" id="txtNickName" runat="server"
								NAME="txtNickName">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							职务：</td>
						<td class="ta_txt">
							<input type="text" size="25" maxlength="50" class="BigInput" id="txtMinistration" runat="server"
								NAME="txtMinistration">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							配偶：</td>
						<td class="ta_txt">
							<input type="text" size="25" maxlength="50" class="BigInput" id="txtMate" runat="server"
								NAME="txtMate">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							子女：</td>
						<td class="ta_txt">
							<input type="text" size="25" maxlength="50" class="BigInput" id="txtChild" runat="server"
								NAME="txtChild">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableHeader" colspan="2"><b>&nbsp;联系方式（单位）</b></td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							单位名称：</td>
						<td class="ta_txt">
							<input type="text" size="25" maxlength="50" class="BigInput" id="txtDeptName" runat="server"
								NAME="txtDeptName">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">单位地址：</td>
						<td class="ta_txt">
							<input type="text" size="40" maxlength="200" class="BigInput" id="txtDeptAddr" runat="server"
								NAME="txtDeptAddr">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							单位邮编：</td>
						<td class="ta_txt">
							<input type="text" size="25" maxlength="50" class="BigInput" id="txtDeptPost" runat="server"
								NAME="txtDeptPost">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							单位电话：</td>
						<td class="ta_txt">
							<input type="text" size="25" maxlength="50" class="BigInput" id="txtDeptTel" runat="server"
								NAME="txtDeptTel">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							单位传真：</td>
						<td class="ta_txt">
							<input type="text" size="25" maxlength="50" class="BigInput" id="txtDeptFax" runat="server"
								NAME="txtDeptFax">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableHeader" colspan="2"><b>&nbsp;联系方式（家庭）</b></td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							家庭住址：</td>
						<td class="ta_txt">
							<input type="text" size="40" maxlength="200" class="BigInput" id="txtHomeAddr" runat="server"
								NAME="txtHomeAddr">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							家庭邮编：</td>
						<td class="ta_txt">
							<input type="text" size="25" maxlength="50" class="BigInput" id="txtHomePost" runat="server"
								NAME="txtHomePost">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							家庭电话：</td>
						<td class="ta_txt">
							<input type="text" size="25" maxlength="50" class="BigInput" id="txtHomeTel" runat="server"
								NAME="txtHomeTel">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							手机：</td>
						<td class="ta_txt">
							<input type="text" size="25" maxlength="50" class="BigInput" id="txtMobile" runat="server"
								NAME="txtMobile">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							小灵通：</td>
						<td class="ta_txt">
							<input type="text" size="25" maxlength="50" class="BigInput" id="txtBp" runat="server"
								NAME="txtBp">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							电子邮件：</td>
						<td class="ta_txt">
							<input type="text" size="25" maxlength="100" class="BigInput" id="txtEmail" runat="server"
								NAME="txtEmail">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							QQ号码：</td>
						<td class="ta_txt">
							<input type="text" size="25" maxlength="50" class="BigInput" id="txtOicq" runat="server"
								NAME="txtOicq">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableData">
							MSN：</td>
						<td class="ta_txt">
							<input type="text" size="25" maxlength="50" class="BigInput" id="txtMsn" runat="server"
								NAME="txtMsn">
						</td>
					</tr>
					<tr>
						<td nowrap class="TableHeader" colspan="2"><b>&nbsp;备 注</b></td>
					</tr>
					<tr>
						<td class="ta_txt" colspan="2">
							<textarea cols="60" rows="5" class="BigInput" wrap="on" id="txtNote" runat="server" NAME="txtNote"></textarea>
						</td>
					</tr>
					<tr align="center">
						<td colspan="2" class="bnt_con" nowrap>
						    <table width="130" cellpadding="0" cellspacing="0" border="0" style="border:none;">
							  <tr>
							    <td align="left" style="border:none;"><input type="submit" value="保 存" class="BigButton" onClick="return CheckForm();"></td>
								<td align="right" style="border:none;"><input type="button" value="返 回" class="BigButton" onClick="location='address.aspx?group_id=<%=ViewState["GroupId"]%>'"></td>
							  </tr>
							</table>
						</td>
					</tr>
				</TBODY>
			</table>
			<br>
			</asp:Panel>
			<asp:Literal id="litMessage" runat="server"></asp:Literal>
		</form>
	</body>
</HTML>
